﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SystemFramework.Util;
using TF.Access;
using System.Collections.Generic;
using System.Text;

public partial class places : System.Web.UI.Page
{
    protected string cityNavigatorString;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (!string.IsNullOrEmpty(Request["id"]))
            {
                TF_View tv = TF_View.Select(ConvertHelper.GetInt(Request["id"],0));
                List<CityNavigator> cityNavigatorList = TF_City.SelectCityNavigator(tv.CityID);
                StringBuilder cnBuilder = new StringBuilder();
                foreach (CityNavigator c in cityNavigatorList)
                {
                    cnBuilder.Append(string.Format(@"<li><a href='destination.html'>{0}</a> - </li>
                            <li><a href='destination.html'>{1}</a> - </li>
                            <li><font class='bigfont'><b>{2}</b></font></li>",c.CountryName,c.ProvinceName,c.CityName));
                }
                cityNavigatorString = cnBuilder.ToString();
            }
            else
            {

            }
        }
    }


}
